package com.lww.feature.test.reflectionIntrospector;

/**
 * User: yian
 * Date: 2017/5/6
 */

public class JavaBean {
    private String p1;
    private Integer p2;
    private int p3;

    public String getP1() {
        return p1;
    }

    public void setP1(String p1) {
        this.p1 = p1;
    }

    public Integer getP2() {
        return p2;
    }

    public void setP2(Integer p2) {
        this.p2 = p2;
    }

    public int getP3() {
        return p3;
    }

    public void setP3(int p3) {
        this.p3 = p3;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("  \"p1\":\"").append(p1).append('\"');
        sb.append(", \"p2\":").append(p2);
        sb.append(", \"p3\":").append(p3);
        sb.append('}');
        return sb.toString();
    }
}
